<%@ page language="java" import="java.util.*" pageEncoding="utf-8"%>

<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN">
<html>
  <head>
    
    <title>登录</title>
    
  </head>
  
  <body>
    <h4><center>登录页面</center></h4>
    <div>
    	<%--下面代码用来判断有没有错误信息,如果有显示 --%>
    	<%
    		if(session.getAttribute("msg")!=null)
    			out.print("<font color=red size=16>"+session.getAttribute("msg")+"</font>");
    	 %>
    </div>
    
    
    <form name="form1" action="Login_access.jsp" method="post">
    <h4>请输入用户名:<input name="uname" required placeholder="用户名可以中文或英文至少一位" 
    	pattern="[\u4e00-\u9fa5_a-zA-Z0-9_]{1,10}"></h4>
    <h4>请输入密码:<input type="password" name="pwd" required placeholder="密码应该是6到10位的数字" pattern="\d{6,10}"></h4>
    <h4><input type="submit" value="登录"> &nbsp;&nbsp;&nbsp;&nbsp;
    	<input type="reset" value="重置"> &nbsp;&nbsp;&nbsp;&nbsp;
    	<a href="regist.html">请免费注册</a>
    </h4>
    </form>
  </body>
</html>
